﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Web.UI.HtmlControls;
using System.Web.WebPages;

namespace site.Models
{
    public class Study
    {
        public int id { get; set; }
        
        [Required(ErrorMessageResourceType = typeof(site.Views.Home.HomeResource), ErrorMessageResourceName = "Required")]
        [StringLength(50,MinimumLength = 5, ErrorMessage = "Max chars: 5")]
        [Remote("TitleUnique", "Study", ErrorMessage = "This title already was registered")]
        public string Title { get; set; }
        
        public string Description { get; set; }


        public void Start()
        {
            
        }
    }
}